<?php
require_once PATH_CLASSES.'/Template.php';

/**
 * Include template
 *
 * Includes subtemplate with given parameters
 *
 * @param string $sFileName Path to the subtemplate file
 * @param string $aParameters Parameters to be passed to the subtemplate
 */
function includeTemplate($sFileName, $aParameters = null) {
    $oTemplate = new Template();
    if (isset($aParameters)) {
        $oTemplate->assign(&$aParameters);
    }
    $oTemplate->display($sFileName);
}
?>